package com.java.comprehensive.design.structural_model.flyweight_pattern;

/**
 * 抽象享元角色
 */
public abstract class AbstractBox {
    // 获取图形
    public abstract String getShape();

    //显示图形 颜色
    public void display(String color) {
        System.out.println("方块形状：" + getShape() + ",颜色：" + color);
    }
}
